package com.heima.Factory;

import com.heima.Dao.Order;
import com.heima.Dao.impl.OrderDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class OrderDaoFzctoryBean implements FactoryBean<Order> {

    @Override
    public Order getObject() throws Exception {
        System.out.println("静态工厂");
        return new OrderDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return Order.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
